All right, Now let's work on our battle royale arena.
The second place that we go to when we initiate our battle, I'm going to go to the View tab.
And then this is the asset manager right here.
If you hover over it, you can see it.
Just click there and we have our places.
I'm going to open that up by double clicking and then I have my battle royale.
This is the arena where we do our battle royale, so I'll go ahead and bring that up.
I just double clicked it.
It's just going to take a minute.
I'll pause the video.
All right.
This is the battle royale place, and I'm going to need my scripts from server script service for the
game manager and the equipment manager.
Let's go ahead and make this smaller so I can see both of the windows.
I'll just go ahead and shrink that.
There we go.
And here's my server script service on the game side, the main game.
I'm going to grab that game manager and we don't need a wave loop.
The Z spawner is good control.
Click on Equipment Manager.
Let's go ahead and right click and then I'll copy and then I'm going to bring up my other window.
Here it is.
Server Script service.
Let's just go ahead and right click paste into it'll almost work identical.
There's one thing that we got to change in our game manager.
We send information to our UI using an info queue.
Let's open up the game manager and change that.
I'm going to make this bigger.
Right.
So this is this is my battle royale.
The second place.
Right.
But these scripts are almost identical, so you've got to be careful, right?
We don't have an info message re on this side and I don't think I'm going to need it.
So I'm going to delete line four here.
And the reason I do it up here so that I can see where all the occurrences are along the side here,
all the errors, because I want to remove those two, right?
So we have in our daily streak stuff, we're going to delete those info messages.
Here we go.
I think that's all we need to do.
All right.
And then our equipment manager.
Let's see if we got everything in there.
This is looking pretty good.
This is pretty self contained.
Now this gets all the information from our data store about the weapons we have.
But don't forget, we actually grabbed those from replicated storage and clone them in the game.
So we need to get our weapons and replicated storage in this place, too.
Let me go ahead and close this and I'll go over to replicated storage, grab our weapons.
This is where we wish we had more folders, right?
Or I should have done more folders, but that's fine.
I don't have the classic slingshot, but I'm going to grab it anyway.
Fabulous.
Lemon.
That doesn't do anything.
But we'll get the simple pistol.
Let's grab all of them.
Let's just go ahead and right click and then copy.
And now I'm going to bring up my other game.
There it is.
And we're going to go to replicated storage.
There's nothing in replicated storage right click paste into now we have our weapons.
Nice.
All right.
So once again, I'm going to check game settings, right?
So I'm in my battle royale place where I just pasted my weapons.
I just want to make sure security enabled studio access to API services is green so that we can use
our data store.
We can.
Let's go ahead and close that file, publish to Roblox, grab your other game, your other place, same
game, other place.
Saved a Roblox.
Let's go and bring up our website and play this, see if we can test it out because remember, we can't
teleport in in in Roblox studio.
Let's just bring up the website.
Boom.
There I am.
Simtek Nitro.
Once I'm logged in, we'll go to create.
Take a look at our games experiences.
It's already selected my zombie game.
I have it public so that I can.
I can bring my alt over if I need to.
And let's see, we'll hit view on Roblox.
There we go.
And play.
I'm going to pause the video while the player starts up.
All right.
I am in my world.
Let's go to our settings, bring up our control panel there, our developer console.
Cool.
Let's go and move it over.
Can I grab it?
There we go.
Make it smaller.
Drag it down.
Go to server.
What do we have?
Log scripts.
I'll keep it like that.
All right.
Now we'll go over to our initiate battle.
Click on it.
Except I'll pause.
And then when we get over there, I'll unpause it.
All right, here we go.
Are we going to have a weapon?
Look at that.
We have a weapon, and it works Pretty cool.
Let's see if there's any errors here.
Let's go to settings and open developer console.
Good server.
Looking good.
Oh, yeah.
There we go.
All right, so now we have our weapons.
We can we can get stuff in the second place that we teleport to.
That's pretty cool.
Well, it's the first place we're teleporting to, right?
But we have two places.
And both have weapons.
We have access to our weapons.
Everything we own in the other place we can get here in the next video.
Let's make it so that when you die or when you win the battle royale, you get teleported back.